package com.atguigu.newmvc.vo.req;

import com.atguigu.newmvc.annotation.Gender;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateVo {
    private Integer id;
    @NotNull(message = "员工姓名没有！")
    private String name;
    @Max(value = 120,message = "年纪超出范围！")
    private Integer age;
    @Email(message = "邮箱不对")
    private String email;
    @Gender(message = "性别不对!")
    private String gender;
    private String address;
    private BigDecimal salary;
}
